﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ListContact.ascx.cs" Inherits="ServicesDirectory.UserControl.ListContact1" %>
<%@ Register src="ManagerContact.ascx" tagname="ManagerContact" tagprefix="uc1" %>

 
<script type="text/javascript">

	

  $(document).ready(function() {
        setTimeout("hide()", 5000);
        });
         
    function hide() {
        $(document).ready(function() {
           $("#<%=lblAnnounce.ClientID %>").hide();
        });
    	}

</script>

<div class="bgManager">
    <div class="TitleManarer">
        Search Contact
    </div>
    <div class="listContact">
        <div class="spaceManager">
        </div>
        <div class="titleCol1">
            FirstName:</div>
        <div class="titleCol2">
            <asp:TextBox runat="server" ID="txtFirstName" Width="99%"></asp:TextBox></div>
        <div class="titleCol1">
            SurName:</div>
        <div class="titleCol2">
            <asp:TextBox runat="server" ID="txtSurname" Width="99%"></asp:TextBox>
        </div>
    </div>
    <div class="spaceManager">
    </div>
    <div class="ButonContact">
        <asp:Button runat="server" ID="cmdSearchContact" Text="Search Contact" Font-Size="XX-Small" />
        <asp:Button runat="server" Width="60px" ID="cmdNone" Text="None" Font-Size="XX-Small" />
        <asp:Button runat="server" Width="60px" ID="cmdCreate" Text="Create" Font-Size="XX-Small" />
    </div>
    <div class="spaceManager">
    </div>
    <asp:CheckBox runat="server" ID="chkInactive" Text="Include In-Active Contact?" Font-Size="10pt"
        AutoPostBack="True" oncheckedchanged="Inactive_CheckedChanged" />
    <div class="spaceManager">
    </div>
    <div class="contentGrid">
        <div class="hearderGrid">
            <div class="ContactHeaderCol0">
                &nbsp;
            </div>
            <div class="ContactHeaderCol1">
                ContactName</div>
            <div class="ContactHeaderCol2">
                Mobile Phone</div>
            <div class="ContactHeaderCol3">
                Email</div>
            <div class="ContactHeaderCol4">
                IsActive</div>
        </div>
        <asp:Repeater runat="server" ID="rptContacts">
            <ItemTemplate>
                <asp:HiddenField runat="server" ID="hdContactId" Value='<%#Eval("ContactID") %>' />
                <div class="rowGrid">
                    <div class="ContactContentCol0">
                        <asp:RadioButton runat="server" ID="rbtSelect" /></div>
                    <div class="ContactContentCol1">
                        <%#Eval("FirstName") %>
                        &nbsp;
                        <%#Eval("SurName") %></div>
                    <div class="ContactContentCol2">
                        <%#Eval("MobilePhone") %></div>
                    <div class="ContactContentCol3">
                        <%#Eval("Email") %></div>
                    <div class="ContactContentCol4">
                       <asp:Label runat="server" ID="lblIsactive" Text=' <%#Eval("IsActive") %>'></asp:Label></div>
                </div>
            </ItemTemplate>
            <AlternatingItemTemplate>
                <asp:HiddenField runat="server" ID="hdContactId" Value='<%#Eval("ContactID") %>' />
                <div class="alterRowGrid">
                    <div class="ContactContentCol0">
                        <asp:RadioButton runat="server" ID="rbtSelect" /></div>
                    <div class="ContactContentCol1">
                        <%#Eval("FirstName") %>
                        &nbsp;
                        <%#Eval("SurName") %></div>
                    <div class="ContactContentCol2">
                        <%#Eval("MobilePhone") %></div>
                    <div class="ContactContentCol3">
                        <%#Eval("Email") %></div>
                    <div class="ContactContentCol4">
                      <asp:Label runat="server" ID="lblIsactive" Text=' <%#Eval("IsActive") %>'></asp:Label></div>
                </div>
            </AlternatingItemTemplate>
        </asp:Repeater>
        <asp:HiddenField runat="server" ID="currentContactId" />
    </div>
    <div class="PagingList">
        <span>
            <asp:Button runat="server" CssClass="backAllList" ID="cmdBackAll" OnClick="CmdBackAll_Click" />
        </span><span>
            <asp:Button runat="server"  CssClass="backList" ID="cmdBacklist" 
            OnClick="Backlist_Click" /></span>
        <span style="padding-left: 5px;">Page</span> <span style="padding-left: 5px;">
            <input runat="server" id="txtPageNumber" value="1" style="width: 15px" onblur="IsNumeric(this.value)"
                type="text" />
        </span><span>of</span> <span>
            <asp:Label runat="server" Text="1" ID="lblTotalPage"></asp:Label></span> <span>
                <asp:Button runat="server" CssClass="nextAll" ID="cmdNextAll" OnClick="CmdNextAll_Click" />
            </span><span>
                <asp:Button runat="server" CssClass="nextList" ID="cmdNext" OnClick="CmdNext_Click" />
            </span>
    </div>
    <div class="spaceManager">
    </div>
    <div class="ButonContact">
        <asp:Button runat="server" Width="60px" ID="cmdSelect" Text="Select" 
            Font-Size="XX-Small" />
        <asp:Button runat="server" Width="60px" ID="cmdEdit" Text="Edit" Font-Size="XX-Small" />
        <asp:Button runat="server" Width="60px" ID="cmdClose" Text="Close" Font-Size="XX-Small"
            OnClick="CmdClose_Click" />
        &nbsp;
        <asp:Label runat="server" CssClass="announce" ID="lblAnnounce" Visible="false"></asp:Label>
    </div>
    <div class="spaceManager">
    </div>
    
            <asp:Panel runat="server" ID="listEdit" CssClass="web_dialog" Visible="false">
                <uc1:ManagerContact ID="ManagerContact1" runat="server" />
            </asp:Panel>
        
</div>


